export default [
  {
    path: '/home',
    component: '/home',
    name: 'home',
    meta: {
      title: '首页',
      icon: 'DesktopOutlined',
      isAffix: true,
      showTitle: false,
    },
    children: [],
  },
  {
    path: '/components',
    redirect: '/components/modal',
    name: 'components',
    meta: {
      title: '组件',
      icon: 'component',
      iconType: 'svg',
    },
    children: [
      {
        path: '/components/modal',
        name: 'components-modal',
        component: '/components/modal',
        meta: {
          title: '弹窗',
          showTitle: false,
        },
      },
      {
        path: '/components/editor',
        name: 'components-editor',
        component: '/components/editor',
        meta: {
          title: '编辑器',
        },
      },
      {
        path: '/components/search',
        name: 'components-search',
        component: '/components/search',
        meta: {
          title: '搜索表单',
        },
      },
      {
        path: '/components/qrcode',
        name: 'components-qrcode',
        component: '/components/qrcode',
        meta: {
          title: '二维码',
        },
      },
      {
        path: '/components/icon-select',
        name: 'components-icon-select',
        component: '/components/icon-select',
        meta: {
          title: '图标选择器',
        },
      },
      {
        path: '/components/pulse',
        name: 'components-pulse',
        component: '/components/pulse',
        meta: {
          title: '脉冲圆点',
        },
      },
      {
        path: '/components/zip',
        name: 'components-zip',
        component: '/components/zip',
        meta: {
          title: '导出zip',
        },
      },
      {
        path: '/components/cropper',
        name: 'components-cropper',
        component: '/components/cropper',
        meta: {
          title: '图片裁剪',
        },
      },
      {
        path: '/components/upload',
        name: 'components-upload',
        component: '/components/upload',
        meta: {
          title: '上传',
        },
      },
      {
        path: '/components/select-filter',
        name: 'components-filter',
        component: '/components/select-filter',
        meta: {
          title: '分类筛选',
          icon: 'FilterOutlined',
        },
      },
      {
        path: '/components/captcha-input',
        name: 'components-captcha-input',
        component: '/components/captcha-input',
        meta: {
          title: '验证码',
        },
      },
    ],
  },
  {
    path: '/feature',
    redirect: '/feature/print',
    name: 'feature',
    meta: {
      title: '功能',
      icon: 'feat',
      iconType: 'svg',
    },
    children: [
      {
        path: '/feature/print',
        name: 'feature-print',
        component: '/feature/print',
        meta: {
          title: '打印',
        },
      },
      {
        path: '/feature/signature',
        name: 'feature-signature',
        component: '/feature/signature',
        meta: {
          title: '签名板',
        },
      },
      {
        path: '/feature/watermark',
        name: 'feature-watermark',
        component: '/feature/watermark',
        meta: {
          title: '水印',
          showTitle: false,
        },
      },
      {
        path: '/feature/pdf',
        name: 'feature-pdf',
        component: '/feature/pdf',
        meta: {
          title: 'pdf',
          showTitle: false,
        },
      },
      {
        path: '/feature/directives',
        name: 'feature-directives',
        component: '/feature/directives',
        meta: {
          title: '指令',
        },
      },
      {
        path: '/feature/draggable',
        name: 'feature-draggable',
        component: '/feature/draggable',
        meta: {
          title: '拖拽',
        },
      },
      {
        path: '/feature/json-editor',
        name: 'feature-json-editor',
        component: '/feature/json-editor',
        meta: {
          title: 'json编辑器',
        },
      },
      {
        path: '/feature/slide-verify',
        name: 'feature-slide-verify',
        component: '/feature/slide-verify',
        meta: {
          title: '滑动验证',
        },
      },
      {
        path: '/feature/context-menu',
        name: 'feature-context-menu',
        component: '/feature/context-menu',
        meta: {
          title: '右键菜单',
        },
      },
      {
        path: '/feature/barcode',
        name: 'feature-barcode',
        component: '/feature/barcode',
        meta: {
          title: '条形码',
        },
      },
      {
        path: '/feature/date',
        name: 'feature-date',
        component: '/feature/date',
        meta: {
          title: '时间/日期相关操作',
        },
      },
      {
        path: '/feature/message',
        name: 'feature-message',
        component: '/feature/message',
        meta: {
          title: '消息通知',
        },
      },
      {
        path: '/feature/step-form',
        name: 'feature-step-form',
        component: '/feature/step-form',
        meta: {
          title: '分步表单',
        },
      },
      {
        path: '/feature/poster',
        name: 'feature-poster',
        component: '/feature/poster',
        meta: {
          title: '海报',
        },
      },
      {
        path: '/feature/calendar',
        name: 'feature-calendar',
        component: '/feature/calendar',
        meta: {
          title: '日历',
        },
      },
      {
        path: '/feature/color-transform',
        name: 'feature-color-transform',
        component: '/feature/color-transform',
        meta: {
          title: '颜色转换',
        },
      },
    ],
  },
  {
    path: '/form',
    redirect: '/form/base',
    name: 'form',
    meta: {
      title: '表单(beta)',
      icon: 'FormOutlined',
    },
    children: [
      {
        path: '/form/base',
        name: 'form-base',
        component: '/form/base',
        meta: {
          title: '基本表单',
        },
      },
      {
        path: '/form/dynamic',
        name: 'form-dynamic',
        component: '/form/dynamic',
        meta: {
          title: '动态表单',
        },
      },
    ],
  },
  {
    path: '/system',
    redirect: '/system/modal',
    name: 'system',
    meta: {
      title: '系统管理',
      icon: 'DeploymentUnitOutlined',
    },
    children: [
      {
        path: '/system/log',
        name: 'system-log',
        component: '/system/log',
        meta: {
          title: '系统日志',
        },
      },
      {
        path: '/system/menu',
        name: 'system-menu',
        component: '/system/menu',
        meta: {
          title: '菜单管理',
        },
      },
      {
        path: '/system/logDetail',
        name: 'system-logDetail',
        component: '/system/log/detail',
        meta: {
          title: '日志详情',
          isKeepAlive: true,
          showTitle: false,
          hidden: true,
        },
      },
      {
        path: '/system/list-card',
        name: 'system-list-card',
        component: '/system/list-card',
        meta: {
          title: '卡片列表',
        },
      },
      {
        path: '/system/users',
        name: 'system-users',
        component: '/system/users',
        meta: {
          title: '用户管理',
          icon: 'UserOutlined',
          showTitle: false,
        },
      },
    ],
  },
  {
    path: '/link',
    redirect: '/link/bilibili',
    name: 'link',
    meta: {
      title: '链接',
      icon: 'LinkOutlined',
    },
    children: [
      {
        name: 'bilibili',
        path: '/link/bilibili',
        meta: {
          title: 'b站内嵌',
          type: 'iframe',
          isKeepAlive: true,
          url: 'https://bilibili.com',
        },
      },
      {
        name: 'vue',
        path: '/link/vue',
        meta: {
          title: 'vue文档',
          type: 'link',
          url: 'https://cn.vuejs.org',
        },
      },
    ],
  },
  {
    path: '/better-scroll',
    redirect: '/better-scroll/pulldown',
    name: 'better-scroll',
    meta: {
      title: 'better-scroll',
      icon: 'HddOutlined',
    },
    children: [
      {
        path: '/better-scroll/pulldown',
        name: 'better-scroll-pulldown',
        component: '/better-scroll/pulldown',
        meta: {
          title: 'pulldown',
        },
      },
      {
        path: '/better-scroll/pullup',
        name: 'better-scroll-pullup',
        component: '/better-scroll/pullup',
        meta: {
          title: 'pullup',
        },
      },
      {
        path: '/better-scroll/indicators',
        name: 'better-scroll-indicators',
        component: '/better-scroll/indicators',
        meta: {
          title: 'indicators',
        },
      },
      {
        path: '/better-scroll/result',
        name: 'better-scroll-result',
        component: '/better-scroll/result',
        meta: {
          title: '效果展示',
        },
      },
    ],
  },
  {
    path: '/excel',
    redirect: '/excel/exportExcel',
    name: 'excel',
    meta: {
      title: 'excel',
      icon: 'excel',
      iconType: 'svg',
    },
    children: [
      {
        path: '/excel/export-excel',
        name: 'excel-export-excel',
        component: '/excel/export-excel',
        meta: {
          title: '导出 excel',
        },
      },
      {
        path: '/excel/export-selected',
        name: 'excel-export-selected',
        component: '/excel/export-selected',
        meta: {
          title: '导出 已选择',
        },
      },
      {
        path: '/excel/export-multi-header',
        name: 'excel-export-multi-header',
        component: '/excel/export-multi-header',
        meta: {
          title: '导出 多级表头',
        },
      },
      {
        path: '/excel/upload-excel',
        name: 'excel-upload-excel',
        component: '/excel/upload-excel',
        meta: {
          title: '上传excel',
        },
      },
    ],
  },
  {
    path: '/nesting',
    redirect: '/nesting/router1',
    name: 'nesting',
    meta: {
      title: '嵌套路由',
      icon: 'nesting',
      iconType: 'svg',
    },
    children: [
      {
        path: '/nesting/router',
        name: 'nesting-router',
        component: '/nesting/router',
        meta: {
          title: '嵌套路由',
        },
        children: [
          {
            path: '/nesting/router/router1',
            name: 'nesting/router-router1',
            component: '/nesting/router/router1',
            meta: {
              title: '嵌套路由1',
            },
          },
          {
            path: '/nesting/router/router2',
            name: 'nesting/router-router2',
            component: '/nesting/router/router2',
            meta: {
              title: '嵌套路由2',
            },
          },
        ],
      },
    ],
  },
  {
    path: '/abnormal',
    redirect: '/abnormal/403',
    name: 'abnormal',
    meta: {
      title: '异常页面',
      icon: 'WarningOutlined',
    },
    children: [
      {
        path: '/abnormal/403',
        name: 'abnormal-403',
        component: '/abnormal/403',
        meta: {
          title: '403',
          showTitle: false,
        },
      },
      {
        path: '/abnormal/404',
        name: 'abnormal-404',
        component: '/abnormal/404',
        meta: {
          title: '404',
          showTitle: false,
        },
      },
      {
        path: '/abnormal/500',
        name: 'abnormal-500',
        component: '/abnormal/500',
        meta: {
          title: '500',
          showTitle: false,
        },
      },
    ],
  },
  {
    path: '/full-page',
    component: '/full-page',
    name: 'full-page',
    meta: {
      title: '全屏页面',
      icon: 'ExpandOutlined',
      fullPage: true,
    },
  },
  {
    path: '/about',
    component: '/about',
    name: 'about',
    meta: {
      title: '关于项目',
      icon: 'InfoCircleOutlined',
    },
  },
  {
    path: '/overflow',
    redirect: '/overflow/menu',
    name: 'overflow',
    meta: {
      title: '目录超出显示tooltip文字提示哈哈哈哈哈',
    },
    children: [
      {
        path: '/overflow/menu',
        name: 'overflow-menu',
        component: '/overflow/menu',
        meta: {
          title: '目录超出显示tooltip文字提示哦哦哦哦哦',
        },
      },
    ],
  },
]
